package com.learnyou.server.xingzuo.biz.common;

import com.learnyou.server.xingzuo.biz.helper.MediaSaveObject;
import com.qcloud.cos.model.COSObjectInputStream;

import java.io.InputStream;
import java.util.List;

public interface CosFileBiz {

    COSObjectInputStream readFile(String target);

    String saveFile(String saveAs, InputStream stream, long size);

    String saveFile(String saveAs, String file);

    List<String> saveFile(List<MediaSaveObject> mediaSaveObjects);

    boolean removeFile(String target);

    List<String> saveImageFile(List<MediaSaveObject> mediaSaveObjects);

    String getDomain();
}
